package com.wsh.entity.${package};


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
* @author ${author}
* @date ${date}
*/
@Data
@TableName("${tableName}")
public class ${className}Entity implements Serializable {
    private static final long serialVersionUID = 1L;

<#if columns??>
    <#list columns as column>
    /** ${column.label} */
    <#if column.isPk = 1>
    @TableId(type = IdType.UUID)
    </#if>
    <#if column.dateRule??>
    @JsonFormat(pattern = "${column.dateRule}")
    </#if>
    private ${column.colType} ${column.colName};

    </#list>
</#if>
}
